<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <script src="../jsLib/angular-1.3.0.js"></script>
    <title></title>
</head>
<body ng-app>
<div ng-controller="control">
    <input type="text " ng-model="name">
    <input type="text " ng-model="age">
</div>
<script>
    var control = function($scope){
        $scope.name='aa';
        $scope.age='bb'
        $scope.$watch('name+age',function(){
            alert(112)
        },true)
    }
</script>
</body>
</html>